The SimpleMenu Component > FSimpleMenu.setAxis()

 

FSimpleMenu.setAxis()

Availability

Flash Player 6.

Usage

sm_instance.setAxis(axis)

Parameters

axis - A string value specifying a new axis for the SimpleMenu component.

Returns

Nothing.

Description

Modifies the orientation of the component from either left-right or top-bottom. The axis parameter must have a string value of either "horizontal", "vertical", or a Boolean value of true (for the default "horizontal" axis).

Example

This example toggles the axis of the SimpleMenu component:

sm.setAxis((sm.getAxis() == "horizontal") ? "vertical" : "horizontal");

See also

FSimpleMenu.getAxis